package com.fanxl.flink.datastream.sink;

import org.apache.flink.streaming.api.datastream.DataStreamSource;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;

/**
 * @description:
 * @author: fanxiaole
 * @date: 2022/1/21 15:00
 */
public class SinkApp {

    public static void main(String[] args) throws Exception {
        StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
        print(env);
        env.execute("SinkApp");
    }

    public static void print(StreamExecutionEnvironment env) {
        DataStreamSource<String> dataStreamSource = env.readTextFile("data/access.data");
        dataStreamSource.print();
    }

}
